/**
 * 处理orgSelect数据
 * */
import { get } from "lodash";
import { mapState } from "vuex";

export default {
    mounted() {
        if (this.showDefault) {
            this.listOjb && (this.listOjb.orgNo = get(this.orgNoList, "[0].id"));
            this.formItem && (this.formItem.orgNo = get(this.orgNoList, "[0].id"));
            this.formData && (this.formData.orgNo = get(this.orgNoList, "[0].id"));
        }
    },
    computed: mapState({
        orgNoList: (state) => state.admin.fourMenu.orgNoList,
    }),
}
